<script setup>
import { onMounted, ref } from 'vue';

const text = ref('');

onMounted(() => {

    fetch('md/js/prototype.md')
        .then(res => res.text())
        .then(md => {
            console.log(md);
            text.value = md;
        })
})


</script>
<template>
    <div class="w-full h-full overflow-y-auto bg-#fff">
        <h2 class="px-20px py-20px">原型链结构图</h2>
        <img src="./imgs/prototype.png" alt="">
        <v-md-preview :text="text"></v-md-preview>
    </div>
</template>
<style lang="scss" scoped></style>